<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
 <style type="text/css">
	.courseDescription,.courseTitle{
	    width:100px;
		text-overflow:ellipsis;
		white-space:nowrap;
		overflow:hidden;
	}
</style>
<div class="table-responsive"> 
<table class="cntable table table-bordered dataTable table-trainCourse ">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th data-sortable="true" data-field="courseType" style="width:100px">培训类型</th>
			<th data-sortable="true" data-field="courseKinds" style="width:100px">培训种类</th>
			<th style="width:100px">培训导师</th>
			<!-- <th style="width:100px">培训描述</th> -->
			<th data-sortable="true" data-field="viewtimes" style="width:100px">浏览次数</th>
			<th style="width:100px">培训标题</th>
			<th data-sortable="true" data-field="createDate" style="width:100px">创建时间</th>
		</tr>
	</thead>
	<tbody>
	  <c:forEach var="trainCourse" items="${trainCourses}" varStatus="status">
		<tr data-id="${trainCourse.id}">
		 <td>${status.index+1}</td> 
		  <td><t:provider packageName="share" enumClassName="ShareCourseTypeState"
						value="${trainCourse.courseType}" /></td>
		 <td><t:provider packageName="share" enumClassName="ShareCourseKindsState"
						value="${trainCourse.courseKinds}" /></td>
				<td>${trainCourse.courseTeacher}</td>
				<%-- <td><div class="courseDescription" title="${trainCourse.courseDescription}">${trainCourse.courseDescription}</div></td> --%>
				<td>${trainCourse.viewTimes.viewtimes}</td>	
				<td><div class="courseTitle" title="${trainCourse.courseTitle}">${trainCourse.courseTitle}</div></td>							
			    <td><fmt:formatDate value="${trainCourse.createDate}" pattern="yyyy-MM-dd HH:mm:ss" /></td>	
			</tr>
		</c:forEach>   
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th absolute-pos">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>
</div>